<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function arr() {
      var a = 1
    }
    var a = 4
    console.log(a);
  </script>
</body>

</html>